package org.nathanielyoung.fbb;

import org.directwebremoting.ScriptSession;
import org.directwebremoting.proxy.ScriptProxy;
import org.nathanielyoung.events.EventListener;

public class OpponentListener implements EventListener<OpponentEvent> {

	public void onEvent(OpponentEvent event) {
		String name = event.getName();
		
		ScriptSession session = event.getSession();
		
		ScriptProxy proxy = new ScriptProxy(session);

		proxy.addFunctionCall("opponentarrived", name);
	}
}
